package me.ingxin.android.activitylauncher.app

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import me.ingxin.android.activitylauncher.app.databinding.ActivityTargetBinding

/**
 * Created by ingxin on 2022/4/21
 */
class TargetActivity : AppCompatActivity() {

    private val binding by lazy { ActivityTargetBinding.inflate(layoutInflater) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binding.root)

        binding.btnBack.setOnClickListener {
            val itt = Intent()
            itt.putExtra("result_str", "这是目标页面返回的串${System.currentTimeMillis()}")
            setResult(RESULT_OK, itt)
            onBackPressed()
        }
    }


}